<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="app" value='database'}}
{{assign var="act" value='schema'}}
{{assign var="td" value='8'}}
<title>{{$title}}管理 - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
</head>
<body>

{{include file="include/sidebar.html"}}

<div class="body_right">
    <div id="content">

    <form name='form' class="ajaxSubmit" action="index.php?app={{$app}}" method="post">
	    <div class="search">
			<ul class="bread">
				<li>◆数据字典 －> {{$title}}</li>
			</ul>
		</div>
        {{if !$list}}
        	<table class='table table-bordered'><tr class="noline"><td colspan="{{$td}}" class="result_empty"></td></tr></table>
        {{else}}
        <table class="table table-bordered textac">
	        <tr class="ttitle">
	            <th>字段名</th>
	            <th>数据类型</th>
	            <th>默认值</th>
	            <th>允许非空</th>
	            <th>自动递增</th>
	            <th>备注</th>
	        </tr>
	        <tbody>
	            {{foreach from=$list item=val key=key}}
	            <tr>
	                <td>{{$val.column_name}}</td>
	                <td>{{$val.column_type}}</td>
	                <td>{{$val.column_default}}</td>
	                <td>{{$val.is_nullable}}</td>
	                <td>{{$val.extra}}</td>
	                <td style='text-align:left !important;'>{{$val.column_comment}}</td>
	            </tr>
	            {{/foreach}}
	        </tbody>
        </table>
        {{/if}}
    
    </form>
</div>
</div>

</body>
</html>